Skip to content

ansiblize host-based datadog install#272

Merged
und1sk0 merged 6 commits intomasterfrom
SAN-3356-datadog-all-the-things
Jan 18, 2016
Merged

ansiblize host-based datadog install#272
und1sk0 merged 6 commits intomasterfrom
SAN-3356-datadog-all-the-things

Conversation

@und1sk0
Copy link
Copy Markdown
Contributor

@und1sk0 und1sk0 commented Jan 15, 2016

…adog.yml" to deploy.

  1. ensures datadog.yml will install on nearly all hosts (hosts that fail we don't actually care about)
  2. specific integrations like rabbitmq and redis should be turned on in their respective playbooks (rabbit.yml, redis.yml)
  3. binds dd-agent to 0.0.0.0, so any service connecting to any local IP over port 8125 should be g2g.

Comment thread ansible/group_vars/all.yml Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment not needed

git grep -n --color=auto -r datadog_host_address .
delta-hosts/variables:56:datadog_host_address=10.8.5.63
gamma-hosts/variables:55:datadog_host_address=10.4.6.251
group_vars/all.yml:54:datadog_host_address: "{{ ansible_default_ipv4.address }}"
group_vars/alpha-api.yml:24:  -e DATADOG_HOST={{ datadog_host_address }}
group_vars/alpha-charon.yml:9:  DATADOG_HOST: "{{ datadog_host_address }}"
group_vars/alpha-khronos.yml:21:  -e DATADOG_HOST={{ datadog_host_address }}
group_vars/alpha-link.yml:11:  -e DATADOG_HOST={{ datadog_host_address }}
group_vars/alpha-mavis.yml:16:  -e DATADOG_HOST={{ datadog_host_address }}
group_vars/alpha-metis.yml:16:  -e DATADOG_HOST={{ datadog_host_address }}
group_vars/alpha-navi.yml:11:  -e DATADOG_HOST={{ datadog_host_address }}
group_vars/alpha-optimus.yml:16:  -e DATADOG_HOST={{ datadog_host_address }}
group_vars/alpha-palantiri.yml:12:  -e DATADOG_HOST={{ datadog_host_address }}
group_vars/alpha-shiva.yml:16:  -e DATADOG_HOST={{ datadog_host_address }}
group_vars/alpha-workers.yml:17:  -e DATADOG_HOST={{ datadog_host_address }}
roles/consul-services/tasks/main.yml:19:      host_address: '{{ datadog_host_address }}'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep but THOSE don't every get referenced by anything, do they?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regardless, the datadog.conf now uses 0.0.0.0 as it's bind IP, which is appropriate.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so DATADOG_HOST is used in our code to connect to dd

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it. well, it can be the ipv4 address of the main interface since we are now listening on 0.0.0.0, but it should definitely not be the IP address of the services host.

@bkendall
Copy link
Copy Markdown
Contributor

That commit message though... Yikes... Haha

@und1sk0 und1sk0 changed the title Will need to run "ansible-playbook -i <env> -e force_restart=true dat… ansiblize host-based datadog install Jan 16, 2016
@anandkumarpatel
Copy link
Copy Markdown

look ok to me, merge after you tested

und1sk0 added a commit that referenced this pull request Jan 18, 2016
@und1sk0 und1sk0 merged commit bf68484 into master Jan 18, 2016
@und1sk0 und1sk0 deleted the SAN-3356-datadog-all-the-things branch January 18, 2016 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants